package edu.sctu.zhoumengxue.day201505.day20150510;


/**
 * Created by user12 on 2015/5/10.
 */
public class CreationTwo {

    public int size;
    public String name;
    public int sum;

    public CreationTwo(int size){
        this.size = size;
    }

    public CreationTwo(String name){
        this.name = name;
    }

    public int isFor(CreationTwo creationTwo){

        for (int i = 0;i<creationTwo.size;i++){
            sum +=i;
        }

        return sum;
    }
}
